<div class="main-content">
	<div class="breadcrumbs" id="breadcrumbs">
		<!-- .breadcrumb -->
	</div>
	<style type="text/css">
		.wh{float: left;margin-left: 10px;}
	</style>
	<div class="page-content">
        
        <div class="page-header">
			<h1>攒油活动</h1>
		</div>
		<div class="row">
			<div class="col-xs-12">
				<div class="col-xs-12 margin_t margin_b">
					<div class="wh">
						<label for="login_name" >手机号：</label>
						<input type="text" name="login_name" style="height: 28px;" />
					</div>
					<div class="wh">
						<select class="type" >
							<option value="7">ETC</option>
							<option value="8">信用卡</option>
							<option value="9">国际驾照</option>
						</select>
					</div>
					<div class="wh">
						<button class="btn btn-sm btn-info" type="button"><i class="icon-search"></i>发放</button>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	$('.btn').click(function(){
		var type = $('.type').val();
		var login_name = $('input[name="login_name"]').val();
		$.post('<?php echo base_url()."admin/activity/save_oil"?>',{
			login_name:login_name,
			type:type
		},function(res){
			var data = JSON.parse(res);
			if(data.status == 1){
				alert('发放成功!');
			}else{
				alert(data.msg);
			}
		})
	});
</script>